/**
 * Creat with IntelliJ IDEA
 * Description:
 * User:WZW
 * Date:2022-04-23
 * Time:9:08
 */
public class Demo13 {
    public static void main(String[] args) {
        Thread t = new Thread(()->{
            long stat = System.currentTimeMillis();
            try {
                Thread.sleep(3000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            long end = System.currentTimeMillis();
            System.out.println(end - stat);
        });
        t.start();
    }
}
